package org.zstack.header.network.l2;

import org.zstack.header.cluster.ClusterVO;
import org.zstack.header.message.APIMessage;
import org.zstack.header.message.APIParam;
/**
 * @api
 * detach l2Network from a cluster
 *
 * @category l2Network
 *
 * @since 0.1.0
 *
 * @cli
 *
 * @httpMsg
 * {
"org.zstack.header.network.l2.APIDetachL2NetworkFromClusterMsg": {
"l2NetworkUuid": "409bbe05c1714d0a88ed9f4fff5bfe7e",
"clusterUuid": "5161770207e1481084d3cc28998b7a0b",
"session": {
"uuid": "ab776cd039d746569a8a8c47eee41460"
}
}
}
 *
 * @msg
 * {
"org.zstack.header.network.l2.APIDetachL2NetworkFromClusterMsg": {
"l2NetworkUuid": "409bbe05c1714d0a88ed9f4fff5bfe7e",
"clusterUuid": "5161770207e1481084d3cc28998b7a0b",
"session": {
"uuid": "ab776cd039d746569a8a8c47eee41460"
},
"timeout": 1800000,
"id": "09c37622336341f294cb8d692707ff44",
"serviceId": "api.portal"
}
}
 *
 * @result
 * see :ref:`APIDetachL2NetworkFromClusterEvent`
 */
public class APIDetachL2NetworkFromClusterMsg extends APIMessage implements L2NetworkMessage {
    /**
     * @desc l2Network uuid
     */
    @APIParam(resourceType = L2NetworkVO.class)
    private String l2NetworkUuid;
    /**
     * @desc cluster uuid. See :ref:`ClusterInventory`
     */
    @APIParam(resourceType = ClusterVO.class)
    private String clusterUuid;
    
    public String getClusterUuid() {
        return clusterUuid;
    }

    public void setClusterUuid(String clusterUuid) {
        this.clusterUuid = clusterUuid;
    }

    public void setL2NetworkUuid(String l2NetworkUuid) {
        this.l2NetworkUuid = l2NetworkUuid;
    }

    @Override
    public String getL2NetworkUuid() {
        return l2NetworkUuid;
    }

}
